home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / src / bin / graffiti_next / Controller.m < prev    next >
Text File  |  1993-07-06  |  810b  |  62 lines

  1.  
  2. #import "Controller.h"
  3.  
  4. #include <sys/types.h>
  5. #include <sys/time.h>
  6.  
  7. #include "ooglutil.h"
  8. #include "graffiti.h"
  9.  
  10. void DisplayPickInfoPanel()
  11. {
  12.     [NXApp displayPickInfoPanel];
  13. }
  14.  
  15. void readstdin(int theFD, void *data)
  16. {
  17. /*
  18.     if(async_fnextc(stdin,0) != NODATA) {
  19.     Input();
  20.     }
  21. */
  22.  
  23.     /* Try this for n ow, async may not be necessary */
  24.     Input();
  25. }
  26.  
  27. @implementation Controller
  28.  
  29. - appDidInit:sender
  30. {
  31.     [theWindow setAvoidsActivation:YES];
  32.     onlyverts = 0;
  33.     Initialize();
  34.     DPSAddFD(fileno(stdin), &readstdin, NULL, NX_BASETHRESHOLD);
  35.     return self;
  36. }
  37.  
  38. - displayPickInfoPanel
  39. {
  40.     return self;
  41. }
  42.  
  43. - draw:sender
  44. {
  45.     NewLine();
  46.     return self;
  47. }
  48.  
  49. - undo:sender
  50. {
  51.     RemoveVertex();
  52.     return self;
  53. }
  54.  
  55. - verticiesOnly:sender
  56. {
  57.     onlyverts = [sender intValue];
  58.     return self;
  59. }
  60.  
  61. @end
  62.